package com.zxjbyte.yiyi.module.upms.messaging.eventbus.handler;

import com.zxjbyte.yiyi.framework.common.enums.EventTypeEnum;
import com.zxjbyte.yiyi.module.upms.messaging.eventbus.event.UserEvent;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

/**
 * 新增用户事件处理器
 * @Author zhangxingjia
 * @Date 2025/3/28 19:32
 * @Version: 1.0
 */
@Slf4j
@Component
public class UserCreateEventHandler implements UserEventHandler {



    @Override
    public void handle(UserEvent event) {
        log.info("UserCreateEventHandler handle event:{}", event);
    }

    @Override
    public boolean canHandle(EventTypeEnum eventType) {
        return EventTypeEnum.CREATE == eventType;
    }
}
